package com.bw.module_motorcircle.model

/**
 * @author ytx
 * @date 2025-09-25 14:49
 * @description
 */
data class MotoCircleNavigationItem(
    val defaultStatus: Int,
    val modelList: List<ModelItem>,
    val navigationId: String,
    val sort: Int,
    val status: Int,
    val title: String,
    val type: Int,
    val value: String
)



data class ModelItem(
    var isSeries: Boolean = false,
    val modelId: String = "",
    val name: String = "-",
    var checked: Boolean = false, //是否选中
    var last: Boolean = false
) {
    override fun equals(other: Any?): Boolean {
        return (other is ModelItem) && (this.modelId == other.modelId && this.name == other.name)
    }

    override fun hashCode(): Int {
        var result = name.hashCode()
        result = 31 * result + modelId.hashCode()
        return result
    }
}